package com.codeoss.framework.util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.stereotype.Component;

@Component
public class DateUtil {
	public String getNowDate() {
		Date date=new Date();
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd");
		return sdf.format(date);
	}
	
	public Timestamp getSqlNowDatetime() {
		return new Timestamp(System.currentTimeMillis());
	}
}
